home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / Scroll / ScrollView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-15  |  2.4 KB  |  90 lines

  1. // ScrollView.h : interface of the CMyScrollView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. //{{AFX_INCLUDES()
  5. #include "scrollx.h"
  6. //}}AFX_INCLUDES
  7.  
  8. #if !defined(AFX_SCROLLVIEW_H__C904386D_44C8_11D1_825A_00C0F6A070DD__INCLUDED_)
  9. #define AFX_SCROLLVIEW_H__C904386D_44C8_11D1_825A_00C0F6A070DD__INCLUDED_
  10.  
  11. #if _MSC_VER >= 1000
  12. #pragma once
  13. #endif // _MSC_VER >= 1000
  14.  
  15. class CMyScrollView : public CFormView
  16. {
  17. protected: // create from serialization only
  18.     CMyScrollView();
  19.     DECLARE_DYNCREATE(CMyScrollView)
  20.  
  21. public:
  22.     //{{AFX_DATA(CMyScrollView)
  23.     enum { IDD = IDD_SCROLL_FORM };
  24.     CScrollX    m_RTScroll1;
  25.     CScrollX    m_RTScroll2;
  26.     CScrollX    m_RTScroll3;
  27.     CScrollX    m_RTScroll4;
  28.     CScrollX    m_RTScroll5;
  29.     //}}AFX_DATA
  30.  
  31. // Attributes
  32. public:
  33.     CScrollDoc* GetDocument();
  34.  
  35. // Operations
  36. public:
  37.  
  38. // Overrides
  39.     // ClassWizard generated virtual function overrides
  40.     //{{AFX_VIRTUAL(CMyScrollView)
  41.     public:
  42.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  43.     virtual void OnInitialUpdate();
  44.     protected:
  45.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  46.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  47.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  48.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  49.     virtual void OnPrint(CDC* pDC, CPrintInfo*);
  50.     //}}AFX_VIRTUAL
  51.  
  52. // Implementation
  53. public:
  54.     virtual ~CMyScrollView();
  55. #ifdef _DEBUG
  56.     virtual void AssertValid() const;
  57.     virtual void Dump(CDumpContext& dc) const;
  58. #endif
  59.     void BuildGraph1();
  60.     void BuildGraph2();
  61.     void BuildGraph3();
  62.     void BuildGraph4();
  63.     void BuildGraph5();
  64. protected:
  65.  
  66. // Generated message map functions
  67. protected:
  68.     //{{AFX_MSG(CMyScrollView)
  69.     afx_msg void OnInternalTimerScrollxctrl1();
  70.     afx_msg void OnInternalTimerScrollxctrl2();
  71.     afx_msg void OnInternalTimerScrollxctrl3();
  72.     afx_msg void OnInternalTimerScrollxctrl4();
  73.     afx_msg void OnInternalTimerScrollxctrl5();
  74.     DECLARE_EVENTSINK_MAP()
  75.     //}}AFX_MSG
  76.     DECLARE_MESSAGE_MAP()
  77. };
  78.  
  79. #ifndef _DEBUG  // debug version in ScrollView.cpp
  80. inline CScrollDoc* CMyScrollView::GetDocument()
  81.    { return (CScrollDoc*)m_pDocument; }
  82. #endif
  83.  
  84. /////////////////////////////////////////////////////////////////////////////
  85.  
  86. //{{AFX_INSERT_LOCATION}}
  87. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  88.  
  89. #endif // !defined(AFX_SCROLLVIEW_H__C904386D_44C8_11D1_825A_00C0F6A070DD__INCLUDED_)
  90.